package com.qf.air.client;

import com.qf.air.vo.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.io.IOException;
import java.util.Map;

/**
 * @author zjw
 * @description
 * @date 2021/11/10 16:52
 */
@FeignClient(value = "AIR-SEARCH")
public interface AirSearchClient {

    /**
     * 查询ES中存储的空气质量信息
     * @param map
     *      分页信息,查询条件
     * @return
     */
    @PostMapping("/search/list")
    public String list(@RequestBody Map map);

    /**
     * 查询图表
     * @return
     * @throws IOException
     */
    @PostMapping("/search/echarts")
    public String findDistrictAirQualityCount();

}
